<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">


<head>
 <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
 <title>RettaLibros.com</title>
    <%= javascript_include_tag :defaults, 'jquery', 'jquery-ui-1.8.1.custom.min',
      'jquery.simplemodal-1.3.5', 'jquery.field', 'basic', 'mainMenu', 'jquery.plugin.menuTree', 'tree',
      :cache => true  %>
 
    <%#= javascript_include_tag 'prototype', 'scriptaculous', 'application', 'jquery', 'jquery-ui-1.8.1.custom.min',
      'jquery.simplemodal-1.3.5', 'jquery.field', 'basic', 'mainMenu', 'jquery.plugin.menuTree', 'tree',
      :cache => true  %>


    <%= stylesheet_link_tag  'stylesheet','basic', 'headMenu', 'jquery-ui-1.8.1.custom', 'styleTree', 'temp_retta',
      :cache => 'retta'  %>

 <script>
 // this allows jquery to be called along with scriptaculous and YUI without any conflicts
 // the only difference is all jquery functions should be called with $j instead of $
 // e.g. $j('#div_id').stuff instead of $('#div_id').stuff
   var $j = jQuery.noConflict();
 </script>
</head>

<body>

<div id="container">
	<div id="header"> <%= render :partial => "layouts/header"  %> </div>
        <div id="bottom"> <%= render :partial => "layouts/botton"  %> </div>
        <div id="mainContent">
          <% if flash[:notice].is_a?(Array) %>
            <p style="color: green"><%= flash[:notice].join('<br/>') %></p>
          <% else %>
            <p style="color: green"><%= flash[:notice] %></p>
          <% end %>
          <% if flash[:error].is_a?(Array) %>
            <p style="color: red"><%= flash[:error].join('<br/>') %></p>
          <% else %>
            <p style="color: red"><%= flash[:error] %></p>
          <% end %>
          <% if flash[:alert].is_a?(Array) %>
            <p style="color: red"><%= flash[:alert].join('<br/>') %></p>
          <% else %>
            <p style="color: red"><%= flash[:alert] %></p>
          <% end %>

          <% flash[:notice] = nil %>
          <% flash[:error] = nil %>
          <% flash[:alert] = nil %>
            
          <%= yield %>
        </div>
        <div id="footer"> <%= render :partial => "layouts/footer"  %> </div>
</div>
<a href="http://apycom.com/"></a>
</body>
</html>
